package com.luli.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 陆离
 * 2024/10/10 18:10:37
 */
public class User implements Serializable {
    private int id;
    private String userName;
    private String passWord;

    public User() {     System.out.println("--------构造--------"); }
    public int getId() {return id; }
    public void setId(int id) {System.out.println("--------注入--------");this.id = id;}
    public String getUserName() {return userName; }
    public void setUserName(String userName) {this.userName = userName;}
    public String getPassWord() {return passWord; }
    public void setPassWord(String passWord) {this.passWord = passWord;}
    public void init(){System.out.println("--------init初始化--------");}
    public void destroy(){System.out.println("--------destroy销毁--------");}
//
//


    public User(int id, String userName, String passWord) {
        this.id = id;
        this.userName = userName;
        this.passWord = passWord;
    }
//
//    public int getId() {
//        return id;
//    }
//
//    public void setId(int id) {
//        this.id = id;
//    }
//
//    public String getUserName() {
//        return userName;
//    }
//
//    public void setUserName(String userName) {
//        this.userName = userName;
//    }
//
//    public String getPassWord() {
//        return passWord;
//    }
//
//    public void setPassWord(String passWord) {
//        this.passWord = passWord;
//    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                '}';
    }
}
